package com.stone.design.mode.pipeline.tomcat;

import com.stone.design.mode.pipeline.tomcat.valve.PipelineValve;

/**
 * pipeline 接口
 *
 * @author wenpan 2023/11/17 9:51 下午
 */
public interface Pipeline {

    /**
     * 执行
     *
     * @return
     */
    boolean invoke(PipelineContext pipelineContext);

    /**
     * 添加值
     *
     * @param pipelineValve
     * @return
     */
    boolean addValue(PipelineValve pipelineValve);

    /**
     * 移除值
     *
     * @param pipelineValve
     * @return
     */
    boolean removeValue(PipelineValve pipelineValve);
}

